﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections.Concurrent;
using IronCommander.ViewModels;

namespace IronCommander.Domain
{
    public class CurrentPaths
    {
        readonly ConcurrentDictionary<string, string> paths = new ConcurrentDictionary<string, string>();

        public string this[DriveViewModel model]
        {
            get { return paths.GetOrAdd(model.DriveName, model.DriveName); }
            set { paths[model.DriveName] = value; }
        }
    }
}
